pctab for Creating Percentage Tables
I have added pctab sub-command to asdocx. It makes it easy to generate percentage tables from your data. With just one line of code, you can produce a neatly formatted table showing percentages of different variables broken down by a grouping variable.
The syntax for pctab is simple:
asdocx pctab varlist, by(groupby)
Where:
I have added pctab sub-command to asdocx. It makes it easy to generate percentage tables from your data. With just one line of code, you can produce a neatly formatted table showing percentages of different variables broken down by a grouping variable.
The syntax for pctab is simple:
asdocx pctab varlist, by(groupby)
Where:
- varlist is a list of variables for which you want percentages calculated. These will become the rows in your table.
- by() specifies a single grouping variable. This will create a separate column for each unique value of the grouping variable.